/**
 * Created by wxl on 2016/12/16.
 */
// ..
import * as types from './types'
var api=require("../api/tool.js")
/*获取详情数据*/
export const getDetail= (id) =>{
    return {
        type: types.DETAIL_DATA,
        promise: api.getSourceData("api/getInfo/"+id)
    }
}

export const getDetailHotData=(id)=>{
    return {
        type:types.DETAIL_HOT_DATA,
        promise:api.getSourceData("api/getInfoTitles/"+id+"/hot/8/0 ")
    }
}

export const getDetailPListData=(id)=>{
    return {
        type:types.DETAIL_PLIST_DATA,
        promise:api.getSourceData("api/getPidCovers/"+id+"/3/0")
    }
}




